home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
cachemon.zip
/
DEV_HEAD.A86
< prev
next >
Wrap
Text File
|
1990-03-10
|
1KB
|
49 lines
; Fake device driver to monitor BIOS disk accesses
org 0
next dd -1 ; Device header
attribute dw 8000H ; non-IOCTL character device
strategy_ptr dw offset strategy
interrupt_ptr dw offset interrupt
dname db 'CACHE$$$',0
request struc [BX] ; Request header
length db ? ; Common portion
unit db ?
command db ?
status dw ?
rq_reserved db 8 dup (?)
ends
in_header struc [BX+13]
in_rq_units db ? ; Init portion
in_end_address dw 2 dup ?
in_arg_ptr dw 2 dup ?
in_drive_number db ?
ends
request_ptr dw 2 dup ?
strategy:
cs mov request_ptr,bx
cs mov request_ptr[2],es
retf
interrupt:
pushf
push es,ds,ax,bx,si,di
mov ds,cs
cs les bx,request_ptr
es mov al,command
cmp al,0
jne not_ready
jmp init
not_ready:
es mov status, 08102H ; Device not ready, done
return:
pop di,si,bx,ax,ds,es
popf
retf